package com.duanyf.wiki.service;

import com.duanyf.wiki.domain.Test;
import com.duanyf.wiki.mapper.TestMapper;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * @Description:
 * @Author: duanyf
 * @DateTime: 2022/9/16 0016 15:27
 */
@Service
public class TestService {

  //使用@Autowired会报错但是运行应该没有问题
  @Resource
  private TestMapper testMapper;

  public List<Test> list(){
    return testMapper.list();
  }
}
